import request from "@/utils/request";

export const getWhitelist = (params) => {
  return request({
    url: "/eva/v1/whitelist/list",
    method: "get",
    params,
  });
};

export const createWhitelist = (data) => {
  return request({
    url: "/eva/v1/whitelist/create",
    method: "post",
    data,
  });
};

export const updateWhitelist = (data) => {
  return request({
    url: "/eva/v1/whitelist/update",
    method: "post",
    data,
  });
};

export const deleteWhitelist = (data) => {
  return request({
    url: "/eva/v1/whitelist/delete",
    method: "post",
    data,
  });
};
